<extend name="Public/base"/>
<block name="head">
	<link href="__NEW_CSS__/goods.css" rel="stylesheet" />
</block>
<block name="body">
	
    <div class="main mt20 clear">
        <!-- 面包屑 -->
        <div class="place-show">
            <div class="place-explain fl">
                <a href="{:U('Index/index')}">{:C('WEB_SITE_TITLE')}</a>
                &gt;
                <a href="{:U('Goods/cate',array('id'=>$goods['cate_id']))}">{$goods['cate_id']|get_goods_category_name}</a>
                &gt;
               {$goods['title']}
            </div>
        </div>
        <!--items start-->
        <div class="show_box fl">
            <div class="show_body mb20 clear">
                <div class="show_img fl">
                    <a class="show_big buy" title="{$goods_name}">
                        <span class="zhijian">质检</span>
                        <img alt="{$goods['title']}" src="{$goods['pic_url']}" height="310" width="310">
                    </a>
                </div>
                <div class="price-info pr  fl">
                    <h3 class="title">{$goods['title']}</h3>
                    <p class="body_price clear">
                        <span class="price_f fl buy">
                            <em class="price-ico">￥</em>
                            <em class="price">{$goods['price']}</em>
                           <em><del>（原价：{$goods['market_price']}）</del></em>
                            <em><php>echo sprintf( "%.2f",$goods['price']/$goods['market_price'])*10;</php>折</em>
                        </span>
                    </p>
                    <p class="btn" style="display:block">
                    <a class="y-like my-like mt5 fl item-like-btn" href="javascript:;" onclick="favor({$goods['id']})">
                            <em class="icon icon-k"></em>收藏</a> 
                    </p>
                    <p class="btn">
                    	<notempty name="goods.click_url">
                    		 <a class="go_btn buy fl"  href="{$goods['click_url']}" target="_blank" rel="nofollow">
                            <span>去<eq name="goods['goods_type']" value="tmall">天猫</eq><eq name="goods.goods_type" value="taobao">淘宝</eq>购买&gt;&gt;</span>
                        </a>
                    	<else/>
                    		 <a class="go_btn buy fl" biz-itemid="{$goods['num_iid']}" isconvert=1 href="{$goods['item_url']}" target="_blank" rel="nofollow">
                            <span>去<eq name="goods['goods_type']" value="tmall">天猫</eq><eq name="goods.goods_type" value="taobao">淘宝</eq>购买&gt;&gt;</span>
                        </a>
                    	</notempty>
                       
                    </p>
                </div>
            </div>
           
            <div class="bady-part">
                <div class="bady-tab bady_bg clear" id="bady-tab">
                    <ul class="fl">
                        <li><a class="active" href="javascript:;">商品详情</a>
                        </li>
                    </ul>
                    <div class="gobuy fr buy">
                        <p class="price fl">
                            <em class="yang">￥</em>
                            <span class="jd-current"><if condition="$goods.discount_price gt 0">{$goods['discount_price']}<else/>{$goods.price}</if></span></p>
                        <notempty name="goods.click_url">
                       		<a class="btn  fl" href="{$goods['click_url']}" target="_blank">
                            <span>去<eq name="goods[goods_type]" value="tmall">天猫</eq><eq name="goods[goods_type]" value="taobao">淘宝</eq>购买&gt;&gt;</span>
                        </a>
                        <else/>
                        	<a class="btn  fl" biz-itemid="{$goods['num_iid']}" isconvert=1 href="{$goods['item_url']}" target="_blank">
                            <span>去<eq name="goods[goods_type]" value="tmall">天猫</eq><eq name="goods[goods_type]" value="taobao">淘宝</eq>购买&gt;&gt;</span>
                        </a>
                        </notempty>
                        
                    </div>
                </div>

                <div class="con">
                    <div style="padding-top:20px;" class="information">
                        
                        <div class="bady_info">
                            <h3>
                                <div class="line"></div>
                                <div class="line-txt">商品描述
                                    <a name="ms"></a>
                                </div>
                            </h3>
                            <div class="info_s1 clear" id='gdetial'>
                                <if condition="$goods['item_body']">
                                    {$goods['item_body']}
                                <else/>
                              
                                 <script>
										var url = "<php>echo $goods['item_url']</php>";
										$.get('{:U("Goods/ajGetGoodsDetial")}',{url:url},function(data){
											if(data.status){
												$("#gdetial").html(data.content);
											}else{
												$("#gdetial").append(data);
											}
											
											
										});
                                </script>
                                    商品详情加载中，请稍等...
                                </if>
                            </div>
                        </div>
                    </div>

                </div>
            </div>
        </div>
        <div class="hot_box fr">
            <div class="hot_goods">
                <h3>
                    <div class="line"></div>
                    <div class="line-txt">HOT同类热卖</div>
                </h3>
                <ul>
                    <volist name="hot_goods" id="v">
                    <li>
                        <a target="_blank" href="{:U('goods/info',array('id'=>$v['id']))}">
                            <img src="{$v.pic_url}" alt="{$v.title}">
                            <div class="hot_price">
                                <em class="hot_yang">￥</em>
                                <em class="hot_num">{$v.discount_price}</em>
                            </div>
                        </a>
                    </li>
                    </volist>
                </ul>
            </div>
        </div>
    </div>
    <!-- /主体 -->
  
    <!--淘点金代码-->
    <script type="text/javascript">
    (function(win,doc){
        var s = doc.createElement("script"), h = doc.getElementsByTagName("head")[0];
        if (!win.alimamatk_show) {
            s.charset = "utf8";
            s.async = true;
            s.src = "http://a.alimama.cn/tkapi.js";
            h.insertBefore(s, h.firstChild);
        };
        var o = {
            pid: "{:C('PID')}",/*推广单元ID，用于区分不同的推广渠道*/
            appkey: "{:C('APP_KEY')}",/*通过TOP平台申请的appkey，设置后引导成交会关联appkey*/
            unid: "",/*自定义统计字段*/
            type: "click" /* click 组件的入口标志 （使用click组件必设）*/
        };
        win.alimamatk_onload = win.alimamatk_onload || [];
        win.alimamatk_onload.push(o);
    })(window,document);
    </script>

</block>

